using System;

namespace CL
{
    public class CLScene : CLEntity, ICLScene
    {
        public CLFiber Fiber { get; set; }
        public string Name { get; }


        public CLScene()
        {
        }

        public CLScene(CLFiber fiber, long id, long instanceId,string name)
        {
            this.Id = id;
            this.Name = name;
            this.InstanceId = instanceId;
            this.IsCreated = true;
            this.IsNew = true;
            this.Fiber = fiber;
            this.IScene = this;
            this.IsRegister = true;
           // CLLog.Info($"scene create:{this.Id} {this.InstanceId}");
        }

        public override void Dispose()
        {
            base.Dispose();

            //CLLog.Info($"scene dispose: {this.Id} {this.InstanceId}");
        }

        protected override string ViewName
        {
            get
            {
                return $"{this.GetType().Name}";
            }
        }
    }
}
